package com.desksoft.ecommerce.util.quartz;

import javax.inject.Inject;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.desksoft.utility.cache.ICache;

/**
 * 计划任务 - 任务类
 * @author Administrator
 *
 */
public abstract class QuartzTask {

	protected final transient Log log = LogFactory.getLog(getClass());
	
	/**
     * memcached 缓存
     */
	protected ICache memcache;
	
	/**
	 * 执行方法
	 */
	public abstract void doTask();

	public ICache getMemcache() {
		return memcache;
	}

	public void setMemcache(ICache memcache) {
		this.memcache = memcache;
	}
	
}
